/*
 * InfoDB.cpp
 *
 *  Created on: 22/09/2011
 *      Author: Arthur Holanda
 *      Author: Demontie Junior
 */

#include "db/InfoDB.h"

InfoDB::InfoDB() {
	this->nome = "       -      ";
	this->cofre = 0;
}

void InfoDB::Construct(String nome, int cofre) {
	this->nome = nome;
	this->cofre = cofre;
}

InfoDB::InfoDB(String nome, int cofre) {
	this->nome = nome;
	this->cofre = cofre;
}

InfoDB::~InfoDB() {}

String InfoDB::GetNome() {
	return this->nome;
}

int InfoDB::GetCofre() {
	return this->cofre;
}

String InfoDB::ToString() {
	String result = nome;

	//int length = sizeof(nome);
	//for (int i = length; i < 15; i++){
	//	result.Append(" ");
	//}

	result.Append("           ");
	result.Append(this->cofre);
	return result;
}
